package com.yu.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.yu.bean.AdminExample.Criteria;

public class InfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInfoIdIsNull() {
            addCriterion("info_id is null");
            return (Criteria) this;
        }

        public Criteria andInfoIdIsNotNull() {
            addCriterion("info_id is not null");
            return (Criteria) this;
        }

        public Criteria andInfoIdEqualTo(Integer value) {
            addCriterion("info_id =", value, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdNotEqualTo(Integer value) {
            addCriterion("info_id <>", value, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdGreaterThan(Integer value) {
            addCriterion("info_id >", value, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("info_id >=", value, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdLessThan(Integer value) {
            addCriterion("info_id <", value, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("info_id <=", value, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdIn(List<Integer> values) {
            addCriterion("info_id in", values, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdNotIn(List<Integer> values) {
            addCriterion("info_id not in", values, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("info_id between", value1, value2, "infoId");
            return (Criteria) this;
        }

        public Criteria andInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("info_id not between", value1, value2, "infoId");
            return (Criteria) this;
        }

        public Criteria andAdIdIsNull() {
            addCriterion("ad_id is null");
            return (Criteria) this;
        }

        public Criteria andAdIdIsNotNull() {
            addCriterion("ad_id is not null");
            return (Criteria) this;
        }

        public Criteria andAdIdEqualTo(Integer value) {
            addCriterion("ad_id =", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdNotEqualTo(Integer value) {
            addCriterion("ad_id <>", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdGreaterThan(Integer value) {
            addCriterion("ad_id >", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ad_id >=", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdLessThan(Integer value) {
            addCriterion("ad_id <", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdLessThanOrEqualTo(Integer value) {
            addCriterion("ad_id <=", value, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdIn(List<Integer> values) {
            addCriterion("ad_id in", values, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdNotIn(List<Integer> values) {
            addCriterion("ad_id not in", values, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdBetween(Integer value1, Integer value2) {
            addCriterion("ad_id between", value1, value2, "adId");
            return (Criteria) this;
        }

        public Criteria andAdIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ad_id not between", value1, value2, "adId");
            return (Criteria) this;
        }
        /*================================cate_id===================================*/
        public Criteria andCateIdIsNull() {
            addCriterion("i.cate_id is null");
            return (Criteria) this;
        }

        public Criteria andCateIdIsNotNull() {
            addCriterion("i.cate_id is not null");
            return (Criteria) this;
        }

        public Criteria andCateIdEqualTo(Integer value) {
            addCriterion("i.cate_id =", value, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdNotEqualTo(Integer value) {
            addCriterion("i.cate_id <>", value, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdGreaterThan(Integer value) {
            addCriterion("i.cate_id >", value, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("i.cate_id >=", value, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdLessThan(Integer value) {
            addCriterion("i.cate_id <", value, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdLessThanOrEqualTo(Integer value) {
            addCriterion("i.cate_id <=", value, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdIn(List<Integer> values) {
            addCriterion("i.cate_id in", values, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdNotIn(List<Integer> values) {
            addCriterion("i.cate_id not in", values, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdBetween(Integer value1, Integer value2) {
            addCriterion("i.cate_id between", value1, value2, "cateId");
            return (Criteria) this;
        }

        public Criteria andCateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("i.cate_id not between", value1, value2, "cateId");
            return (Criteria) this;
        }
        /*========================================================================*/

        public Criteria andInfoTitleIsNull() {
            addCriterion("info_title is null");
            return (Criteria) this;
        }

        public Criteria andInfoTitleIsNotNull() {
            addCriterion("info_title is not null");
            return (Criteria) this;
        }

        public Criteria andInfoTitleEqualTo(String value) {
            addCriterion("info_title =", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotEqualTo(String value) {
            addCriterion("info_title <>", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleGreaterThan(String value) {
            addCriterion("info_title >", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleGreaterThanOrEqualTo(String value) {
            addCriterion("info_title >=", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleLessThan(String value) {
            addCriterion("info_title <", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleLessThanOrEqualTo(String value) {
            addCriterion("info_title <=", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleLike(String value) {
            addCriterion("info_titl like", value, "infoTitle");
            return (Criteria) this;
        }
        
        /**
         * 模糊查询根据作者模糊查询
         * @param value
         * @return
         */
        public Criteria andInfoAdNameDateLike(String value) {
            addCriterion("info_title like '%"+value+"%' or info_date like binary '%"+value+"%' or ad_name like", "%"+value+"%", "infoTitleAdName");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotLike(String value) {
            addCriterion("info_title not like", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleIn(List<String> values) {
            addCriterion("info_title in", values, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotIn(List<String> values) {
            addCriterion("info_title not in", values, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleBetween(String value1, String value2) {
            addCriterion("info_title between", value1, value2, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotBetween(String value1, String value2) {
            addCriterion("info_title not between", value1, value2, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoContentIsNull() {
            addCriterion("info_content is null");
            return (Criteria) this;
        }

        public Criteria andInfoContentIsNotNull() {
            addCriterion("info_content is not null");
            return (Criteria) this;
        }

        public Criteria andInfoContentEqualTo(String value) {
            addCriterion("info_content =", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotEqualTo(String value) {
            addCriterion("info_content <>", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentGreaterThan(String value) {
            addCriterion("info_content >", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentGreaterThanOrEqualTo(String value) {
            addCriterion("info_content >=", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentLessThan(String value) {
            addCriterion("info_content <", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentLessThanOrEqualTo(String value) {
            addCriterion("info_content <=", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentLike(String value) {
            addCriterion("info_content like", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotLike(String value) {
            addCriterion("info_content not like", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentIn(List<String> values) {
            addCriterion("info_content in", values, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotIn(List<String> values) {
            addCriterion("info_content not in", values, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentBetween(String value1, String value2) {
            addCriterion("info_content between", value1, value2, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotBetween(String value1, String value2) {
            addCriterion("info_content not between", value1, value2, "infoContent");
            return (Criteria) this;
        }

       /* public Criteria andInfoCategoryIsNull() {
            addCriterion("info_category is null");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryIsNotNull() {
            addCriterion("info_category is not null");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryEqualTo(Integer value) {
            addCriterion("info_category =", value, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryNotEqualTo(Integer value) {
            addCriterion("info_category <>", value, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryGreaterThan(Integer value) {
            addCriterion("info_category >", value, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryGreaterThanOrEqualTo(Integer value) {
            addCriterion("info_category >=", value, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryLessThan(Integer value) {
            addCriterion("info_category <", value, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryLessThanOrEqualTo(Integer value) {
            addCriterion("info_category <=", value, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryIn(List<Integer> values) {
            addCriterion("info_category in", values, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryNotIn(List<Integer> values) {
            addCriterion("info_category not in", values, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryBetween(Integer value1, Integer value2) {
            addCriterion("info_category between", value1, value2, "infoCategory");
            return (Criteria) this;
        }

        public Criteria andInfoCategoryNotBetween(Integer value1, Integer value2) {
            addCriterion("info_category not between", value1, value2, "infoCategory");
            return (Criteria) this;
        }*/

        public Criteria andInfoDateIsNull() {
            addCriterion("info_date is null");
            return (Criteria) this;
        }

        public Criteria andInfoDateIsNotNull() {
            addCriterion("info_date is not null");
            return (Criteria) this;
        }

        public Criteria andInfoDateEqualTo(Date value) {
            addCriterion("info_date =", value, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateNotEqualTo(Date value) {
            addCriterion("info_date <>", value, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateGreaterThan(Date value) {
            addCriterion("info_date >", value, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateGreaterThanOrEqualTo(Date value) {
            addCriterion("info_date >=", value, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateLessThan(Date value) {
            addCriterion("info_date <", value, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateLessThanOrEqualTo(Date value) {
            addCriterion("info_date <=", value, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateIn(List<Date> values) {
            addCriterion("info_date in", values, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateNotIn(List<Date> values) {
            addCriterion("info_date not in", values, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateBetween(Date value1, Date value2) {
            addCriterion("info_date between", value1, value2, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoDateNotBetween(Date value1, Date value2) {
            addCriterion("info_date not between", value1, value2, "infoDate");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorIsNull() {
            addCriterion("info_author is null");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorIsNotNull() {
            addCriterion("info_author is not null");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorEqualTo(String value) {
            addCriterion("info_author =", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorNotEqualTo(String value) {
            addCriterion("info_author <>", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorGreaterThan(String value) {
            addCriterion("info_author >", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorGreaterThanOrEqualTo(String value) {
            addCriterion("info_author >=", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorLessThan(String value) {
            addCriterion("info_author <", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorLessThanOrEqualTo(String value) {
            addCriterion("info_author <=", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorLike(String value) {
            addCriterion("info_author like", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorNotLike(String value) {
            addCriterion("info_author not like", value, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorIn(List<String> values) {
            addCriterion("info_author in", values, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorNotIn(List<String> values) {
            addCriterion("info_author not in", values, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorBetween(String value1, String value2) {
            addCriterion("info_author between", value1, value2, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoAuthorNotBetween(String value1, String value2) {
            addCriterion("info_author not between", value1, value2, "infoAuthor");
            return (Criteria) this;
        }

        public Criteria andInfoBnumIsNull() {
            addCriterion("info_bnum is null");
            return (Criteria) this;
        }

        public Criteria andInfoBnumIsNotNull() {
            addCriterion("info_bnum is not null");
            return (Criteria) this;
        }

        public Criteria andInfoBnumEqualTo(Integer value) {
            addCriterion("info_bnum =", value, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumNotEqualTo(Integer value) {
            addCriterion("info_bnum <>", value, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumGreaterThan(Integer value) {
            addCriterion("info_bnum >", value, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("info_bnum >=", value, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumLessThan(Integer value) {
            addCriterion("info_bnum <", value, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumLessThanOrEqualTo(Integer value) {
            addCriterion("info_bnum <=", value, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumIn(List<Integer> values) {
            addCriterion("info_bnum in", values, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumNotIn(List<Integer> values) {
            addCriterion("info_bnum not in", values, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumBetween(Integer value1, Integer value2) {
            addCriterion("info_bnum between", value1, value2, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoBnumNotBetween(Integer value1, Integer value2) {
            addCriterion("info_bnum not between", value1, value2, "infoBnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumIsNull() {
            addCriterion("info_cnum is null");
            return (Criteria) this;
        }

        public Criteria andInfoCnumIsNotNull() {
            addCriterion("info_cnum is not null");
            return (Criteria) this;
        }

        public Criteria andInfoCnumEqualTo(Integer value) {
            addCriterion("info_cnum =", value, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumNotEqualTo(Integer value) {
            addCriterion("info_cnum <>", value, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumGreaterThan(Integer value) {
            addCriterion("info_cnum >", value, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("info_cnum >=", value, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumLessThan(Integer value) {
            addCriterion("info_cnum <", value, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumLessThanOrEqualTo(Integer value) {
            addCriterion("info_cnum <=", value, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumIn(List<Integer> values) {
            addCriterion("info_cnum in", values, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumNotIn(List<Integer> values) {
            addCriterion("info_cnum not in", values, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumBetween(Integer value1, Integer value2) {
            addCriterion("info_cnum between", value1, value2, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoCnumNotBetween(Integer value1, Integer value2) {
            addCriterion("info_cnum not between", value1, value2, "infoCnum");
            return (Criteria) this;
        }

        public Criteria andInfoOriginIsNull() {
            addCriterion("info_origin is null");
            return (Criteria) this;
        }

        public Criteria andInfoOriginIsNotNull() {
            addCriterion("info_origin is not null");
            return (Criteria) this;
        }

        public Criteria andInfoOriginEqualTo(String value) {
            addCriterion("info_origin =", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginNotEqualTo(String value) {
            addCriterion("info_origin <>", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginGreaterThan(String value) {
            addCriterion("info_origin >", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginGreaterThanOrEqualTo(String value) {
            addCriterion("info_origin >=", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginLessThan(String value) {
            addCriterion("info_origin <", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginLessThanOrEqualTo(String value) {
            addCriterion("info_origin <=", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginLike(String value) {
            addCriterion("info_origin like", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginNotLike(String value) {
            addCriterion("info_origin not like", value, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginIn(List<String> values) {
            addCriterion("info_origin in", values, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginNotIn(List<String> values) {
            addCriterion("info_origin not in", values, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginBetween(String value1, String value2) {
            addCriterion("info_origin between", value1, value2, "infoOrigin");
            return (Criteria) this;
        }

        public Criteria andInfoOriginNotBetween(String value1, String value2) {
            addCriterion("info_origin not between", value1, value2, "infoOrigin");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}